from django.test import TestCase

# Create your tests here.

# if __name__ == '__main__':
#     from urllib.parse import parse_qs
#     query_str = 'c=3&b=2&a=1'
#     res = parse_qs(query_str)
#     print(res)

# if __name__ == '__main__':
#     # urlencode:将字典转化为查询字符串
#     from urllib.parse import urlencode
#     dict_data = {
#         'a': 1,
#         'b': 2,
#         'c': 3
#     }
#     res = urlencode(dict_data)
#     print(res)